QT       += core gui
QT       += network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    components/CommonFunc.cpp \
    components/DialogComponents.cpp \
    components/GlobalComponents.cpp \
    components/myWidgets/CJSONTextEdit.cpp \
    components/myWidgets/DialogAddItem.cpp \
    components/myWidgets/JSONTreeView.cpp \
    components/netServer/netComponents.cpp \
    components/netServer/nodeClient.cpp \
    components/netServer/nodeProc.cpp \
    components/netServer/nodeServer.cpp \
    forms/DialogChatServer.cpp \
    forms/FormBase64.cpp \
    forms/FormBaseWidget.cpp \
    forms/FormChatRoom.cpp \
    forms/FormHomePage.cpp \
    #forms/FormJSONShow.cpp \
    #forms/FormJSONTree.cpp \
    forms/FormJSONView.cpp \
    forms/FormPicRect.cpp \
    main.cpp \
    mainwindow.cpp \
    tools/base64.cpp \
    tools/cJSON.c

HEADERS += \
    components/CommonFunc.h \
    components/CustomComponents.h \
    components/DialogComponents.h \
    components/GlobalComponents.h \
    components/StyleSheetSet.h \
    components/myWidgets/CJSONTextEdit.h \
    components/myWidgets/DialogAddItem.h \
    components/myWidgets/JSONTreeView.h \
    components/netServer/netComponents.h \
    forms/DialogChatServer.h \
    forms/FormBase64.h \
    forms/FormBaseWidget.h \
    forms/FormChatRoom.h \
    forms/FormHomePage.h \
    #forms/FormJSONShow.h \
    #forms/FormJSONTree.h \
    forms/FormJSONView.h \
    forms/FormPicRect.h \
    mainwindow.h \
    tools/base64.h \
    tools/cJSON.h

FORMS += \
    mainwindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    resource.qrc

RC_FILE = exe_ico.rc

LIBS += -lpthread libwsock32 libws2_32
